Optimal. Leaf size=131 \[ \frac {2 d \cos (e+f x)}{f \left (c^2-d^2\right ) \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}-\frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f (c-d)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {2779, 12, 2782, 208} \[ \frac {2 d \cos (e+f x)}{f \left (c^2-d^2\right ) \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}-\frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f (c-d)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 208
Rule 2779
Rule 2782
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^{3/2}} \, dx &=\frac {2 d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}+\frac {\int \frac {a (c+d)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{a \left (c^2-d^2\right )}\\ &=\frac {2 d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}+\frac {\int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{c-d}\\ &=\frac {2 d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}-\frac {(2 a) \operatorname {Subst}\left (\int \frac {1}{2 a^2-(a c-a d) x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{(c-d) f}\\ &=-\frac {\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} (c-d)^{3/2} f}+\frac {2 d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.48, size = 306, normalized size = 2.34 \[ \frac {\frac {2 d \cos (e+f x)}{c+d}+\frac {\log \left (\tan \left (\frac {1}{2} (e+f x)\right )+1\right )-\log \left ((d-c) \tan \left (\frac {1}{2} (e+f x)\right )+2 \sqrt {c-d} \sqrt {\frac {1}{\cos (e+f x)+1}} \sqrt {c+d \sin (e+f x)}+c-d\right )}{\frac {\sec ^2\left (\frac {1}{2} (e+f x)\right )}{2 \tan \left (\frac {1}{2} (e+f x)\right )+2}-\frac {\frac {\sqrt {c-d} \left (\frac {1}{\cos (e+f x)+1}\right )^{3/2} (c \sin (e+f x)+d \cos (e+f x)+d)}{\sqrt {c+d \sin (e+f x)}}-\frac {1}{2} (c-d) \sec ^2\left (\frac {1}{2} (e+f x)\right )}{(d-c) \tan \left (\frac {1}{2} (e+f x)\right )+2 \sqrt {c-d} \sqrt {\frac {1}{\cos (e+f x)+1}} \sqrt {c+d \sin (e+f x)}+c-d}}}{f (c-d) \sqrt {a (\sin (e+f x)+1)} \sqrt {c+d \sin (e+f x)}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.73, size = 1016, normalized size = 7.76 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \sin \left (f x + e\right ) + a} {\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.34, size = 874, normalized size = 6.67 \[ -\frac {\ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, c \sin \left (f x +e \right )+\ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, d \sin \left (f x +e \right )+\cos \left (f x +e \right ) \ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, c +\cos \left (f x +e \right ) \ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, d +\ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, c +\ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 d \cos \left (f x +e \right )-2 c +2 d}{1-\cos \left (f x +e \right )+\sin \left (f x +e \right )}\right ) \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, d -2 d \sqrt {2 c -2 d}\, \cos \left (f x +e \right )}{f \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {c +d \sin \left (f x +e \right )}\, \left (c +d \right ) \sqrt {2 c -2 d}\, \left (c -d \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \sin \left (f x + e\right ) + a} {\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {a+a\,\sin \left (e+f\,x\right )}\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (c + d \sin {\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________